(again) i improve my question [closed]

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-05-07T18:08:31Z Indexed on 2010/05/07 18:18 UTC
Read the original article Hit count: 86

Filed under:

Possible Duplicate:
realizing number …how??

i hold input like that A is char pointer

A[0]=n
A[1]=j
A[2]=n     //   i take (one number)+special char(s)+command(s) (like $ or #) from user 
A[3]=d    //    the input order can be changed like char(s)+number+command
.         //    there is one number in A[] 
.         //   and every A[i] is important for me because what will i do in next step
.         //     is determined by that input in A[h] or A[n]
.         //    example
.         //     when you see $ go before array do something
.         //     when you see number go farad equation and use it in there 
A[j]=$    //                 (number can be pozitif or negatif 
.

A[i]=14(any number)
.
.


int func(int temp)
{
    if(temp=='n')
      //..do something then return 10;
    if(temp=='j')
       return 11;
    if(temp=='d')
        return 12;
   if(/*........*/)
   //  when temp find/realize number ,i wanna return 13;
   // in if statement, (instead of .....) what code  should i write  
}

how i can do

}

NOTE::please ,dont close my question ,when you close icannot edit it

© Stack Overflow or respective owner

Related posts about c